package com.findFish.fish.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.fish.mapper.FishHealthMapper;
import com.findFish.fish.domain.FishHealth;
import com.findFish.fish.service.IFishHealthService;

/**
 * 鱼类健康监测Service业务层处理
 * 
 * @author admin
 * @date 2025-04-01
 */
@Service
public class FishHealthServiceImpl implements IFishHealthService 
{
    @Autowired
    private FishHealthMapper fishHealthMapper;

    /**
     * 查询鱼类健康监测
     * 
     * @param id 鱼类健康监测主键
     * @return 鱼类健康监测
     */
    @Override
    public FishHealth selectFishHealthById(Long id)
    {
        return fishHealthMapper.selectFishHealthById(id);
    }

    /**
     * 查询鱼类健康监测列表
     * 
     * @param fishHealth 鱼类健康监测
     * @return 鱼类健康监测
     */
    @Override
    public List<FishHealth> selectFishHealthList(FishHealth fishHealth)
    {
        return fishHealthMapper.selectFishHealthList(fishHealth);
    }

    /**
     * 新增鱼类健康监测
     * 
     * @param fishHealth 鱼类健康监测
     * @return 结果
     */
    @Override
    public int insertFishHealth(FishHealth fishHealth)
    {
        return fishHealthMapper.insertFishHealth(fishHealth);
    }

    /**
     * 修改鱼类健康监测
     * 
     * @param fishHealth 鱼类健康监测
     * @return 结果
     */
    @Override
    public int updateFishHealth(FishHealth fishHealth)
    {
        return fishHealthMapper.updateFishHealth(fishHealth);
    }

    /**
     * 批量删除鱼类健康监测
     * 
     * @param ids 需要删除的鱼类健康监测主键
     * @return 结果
     */
    @Override
    public int deleteFishHealthByIds(Long[] ids)
    {
        return fishHealthMapper.deleteFishHealthByIds(ids);
    }

    /**
     * 删除鱼类健康监测信息
     * 
     * @param id 鱼类健康监测主键
     * @return 结果
     */
    @Override
    public int deleteFishHealthById(Long id)
    {
        return fishHealthMapper.deleteFishHealthById(id);
    }
}
